package com.emep.changzhi.analyse.repository.datamonitor.realtime;

import com.emep.changzhi.analyse.entity.datamonitor.realtime.VehicleEmissionsRealtime;

import com.emep.changzhi.analyse.entity.error.AirQuality;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author xy
 * @Description: 机动车尾气监测_实时数据持久层
 * @date 2018/2/27 11:46
 * @version V1.0
 */

public interface VehicleEmissionsRealtimeRepository extends CrudRepository<VehicleEmissionsRealtime, Long> {
    @Query("select * from data_realtime_vehicle_emissions limit :pageSize")
    List<VehicleEmissionsRealtime> vehicleEmissionsRealtimeHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_realtime_vehicle_emissions where token(id)>token(:id) limit :pageSize")
    List<VehicleEmissionsRealtime> vehicleEmissionsRealtimeFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);
}
